{extend name="../../admin/view/main"}

{block name='content'}
<form action="{:sysuri()}" class="layui-card layui-form" data-auto="true" method="post">
    <div class="layui-card-body">


        <label class="layui-form-item relative block">
            <span class="help-label"><b><span style="color: red">*</span>政策匹配事项类型</b></span>
            <select name="type" id="">
                <option value="">请选择政策匹配事项类型</option>
                {foreach $typeMap as $k=>$v}
                <option {if $k== ($vo.type ??'')} selected {/if} value="{$vo.type ?? $k}">{$v|default="无"}</option>
                {/foreach}
            </select>
        </label>
        <label class="layui-form-item relative block">
            <span class="help-label"><b>政策匹配事项内容</b></span>
            <input class="layui-input" name="value" placeholder="请输入政策匹配事项内容" required
                   value='{$vo.value|default=""}'>
        </label>
        <!--<div class="layui-form-item">-->
        <!--    <label class="layui-form-label" style="width: 170px;"><b>政策匹配事项内容:</b></label>-->
        <!--    <div class="layui-input-block" style="margin-left: 200px;">-->
        <!--        <input type="text" name="matter_name" value="{$vo.matter_name|default=''}"-->
        <!--               placeholder="请输入政策匹配事项内容"-->
        <!--               class="layui-input">-->
        <!--    </div>-->
        <!--</div>-->

        <div class="hr-line-dashed"></div>
        {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}

        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">保存数据</button>
            <button class="layui-btn layui-btn-danger" data-history-back data-confirm="确定要取消编辑吗？" type='button'>
                取消编辑
            </button>
        </div>
    </div>

</form>

<script>
    $('input[name="cover"]').uploadOneImage();
    require(['ckeditor'], function () {
        window.createEditor('[name=content]', {height: 350})
    });
</script>
{/block}
